package com.longge;

/**
 * @program: my-code
 * @description:
 * @author: longge
 * @create: 2021-02-27 22:44
 */
public class MaximumWealth {
    public int maximumWealth(int[][] accounts) {

        int max=0;
        for (int[] allMoney : accounts) {
            int moneys = 0;
            for (int anAllMoney : allMoney) {
                moneys += anAllMoney;
            }
           max= Math.max(max, moneys);
        }
        return max;
    }
}
